cmake_minimum_required(VERSION 3.8)
project(target_prop_append)

add_executable(hello hello.cpp)

set_property(TARGET hello PROPERTY target_prop "value1")
#set_property(TARGET hello PROPERTY target_prop "value2" "value3")
#set_property(TARGET hello APPEND PROPERTY target_prop "value2" "value3")
set_property(TARGET hello APPEND_STRING PROPERTY target_prop "value2" "value3")


get_property(var1 TARGET hello PROPERTY target_prop)
message(STATUS "target_prop = ${var1}")
get_target_property(var2 hello target_prop)
message(STATUS "target_prop = ${var2}")
